import request from '../utils/request';
//仓库管理业务接口文档s
const api = {
  //分页获取退货单数据列表
  GetMatchPageStockGoodsCredits(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/GetMatchPageStockGoodsCredits',
      method: 'post',
      data,
    });
  },
  //获取退货类型
  GetAllCreditType(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/GetAllCreditType',
      method: 'post',
      data,
    });
  },
  //创建退货单
  AddStockGoodsCredit(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/AddStockGoodsCredit',
      method: 'post',
      data,
    });
  },
  //修改退货单
  UpdateStockGoodsCredit(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/UpdateStockGoodsCredit',
      method: 'post',
      data,
    });
  },
  //删除退货单
  DeleteStockGoodsCredit(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/DeleteStockGoodsCredit',
      method: 'post',
      data,
    });
  },
  //确认退货单
  SureStockGoodsCredit(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/SureStockGoodsCredit',
      method: 'post',
      data,
    });
  },
  //修改退货单状态
  UpdateStockGoodsCreditState(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/UpdateStockGoodsCreditState',
      method: 'post',
      data,
    });
  },
  //获取退货单详情
  GetSingleStockGoodsCredit(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/GetSingleStockGoodsCredit',
      method: 'post',
      data,
    });
  },
  //分页获取物料退货出库单数据列表
  GetMatchPageTHOutStockBills(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/GetMatchPageTHOutStockBills',
      method: 'post',
      data,
    });
  },
  //获取物料退货出库单详情
  GetSingleTHOutStockBill(data?: any) {
    return request({
      url: '/api/StockGoodsCredit/GetSingleTHOutStockBill',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
